<script setup>
import { WarningFilled } from '@element-plus/icons-vue'
const d = new Date();
const now = d.toLocaleTimeString();

//定义假数据
const data = [
  { title: '3号地块土壤湿度低于警戒值', time: now },
  { title: '4号地块土壤湿度低于警戒值', time: now },

]
</script>
<template>
    <el-row class="table-Alarm" v-for="data in data" :key="data.title">
      <el-col :span="4"><WarningFilled  class="alarm-icon"/></el-col>
      <el-col :span="20"  >
        <el-row>{{ data.title }}</el-row>
        <el-row>{{ now }}</el-row>
      </el-col>
    </el-row>
</template>
<style scoped lang="scss">

.table-Alarm {
  background-color: #f1070734;
  width: 100%;
  color: #fff;
  height: 50px;
  border: 1px solid #f10707c3;
  border-radius: 10px;
  margin-top: 10px;
}
.alarm-icon {
  height: 20px;
  padding: 10px;
  color: #f10707;
  display: flex;
  justify-content: center;
  align-items: center;
}


</style>